package com.witframework.meta;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.LazyToOne;
import org.hibernate.annotations.LazyToOneOption;

import com.witframework.core.annotations.Wit;

/**
 * 模块的元数据描述
 * @author wuxinyang
 * Jun 5, 2009 5:40:19 PM
 *
 */

@Entity @Table(name="Meta_Module")
@Wit(cnname="模块",description="模块",cnproperty="name")
public class MetaModule extends BaseMetaObject{	
	
	@Column(length=100)@Wit(cnname="名称")
    String name;	

	@Column(length=10) @Wit(cnname="数据类型",description="user,system; system类型的不允许删除")
    String dateType;
    
    @ManyToOne	@LazyToOne(LazyToOneOption.FALSE)
	private MetaApp metaApp;   
    
	public String getDateType() {
		return dateType;
	}

	public void setDateType(String dateType) {
		this.dateType = dateType;
	}

	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public MetaApp getMetaApp() {
		return metaApp;
	}

	public void setMetaApp(MetaApp metaApp) {
		this.metaApp = metaApp;
	}

}
